package ru.st.selenium.pages;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

public class FilmInfoPage extends Page {

	@FindBy(xpath = ".//*[@id='content']/section/nav/ul/li[5]/div/div/a/img")
	private WebElement removeButton;
	
	@FindBy(id = "movie")
	private WebElement movie;

	public FilmInfoPage(PageManager pages) {
		super(pages);
	}

	public void removeButtonClick() {
		removeButton.click();
	}
	
	public boolean isFilmAdded() {
		return movie != null;
	}

}
